﻿using System;
using System.Windows.Forms;

namespace WFCSharp_I
{
    public partial class MDIForm : Form
    {
        public MDIForm()
        {
            InitializeComponent();
        }

        private void MDIForm_Load(object sender, EventArgs e)
        {
        }

        private void saveToolStripButton_Click(object sender, EventArgs e)
        {
            timer1.Start();
            toolStripProgressBar1.Visible = true;
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            toolStripProgressBar1.PerformStep();

            if (toolStripProgressBar1.Value == toolStripProgressBar1.Maximum)
            {
                toolStripProgressBar1.Visible = false;
                timer1.Stop();
            }
        }

        private void newChildFormToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form childForm = new DemoListView();

            childForm.MdiParent = this;
            childForm.Show();
        }

        private void verticalLayoutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.LayoutMdi(MdiLayout.TileVertical);
        }

        private void horizontalLayoutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.LayoutMdi(MdiLayout.TileHorizontal);
        }

        private void cascadeLayoutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.LayoutMdi(MdiLayout.Cascade);
        }

        private void cutToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            MessageBox.Show("Cutted");
        }
    }
}
